package com.openfarmanager.android.model;

import android.content.res.Resources;
import com.openfarmanager.android.App;
import com.openfarmanager.android.R;

/**
 * @author Vlad Namashko
 */
public enum  NetworkEnum {
    Dropbox, SkyDrive;

    public static String getNetworkLabel(NetworkEnum networkEnum) {
        switch (networkEnum) {
            case Dropbox: return "Dropbox";
            case SkyDrive: return "SkyDrive";
            default: return "Dropbox";
        }
    }

    public static NetworkEnum fromOrdinal(int ordinal) {
        if (ordinal == -1) {
            return null;
        }

        return NetworkEnum.values()[ordinal];
    }
}
